package com.wicket.okrframework.biz.service.dto.common;

import com.wicket.okrframework.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.validation.constraints.NotNull;
import lombok.Data;
import java.util.Objects;

/**
 * @desc TaskCategoriesDto
 * @使用场景
 */
@Data
public class TaskCategoriesDto extends BaseDto implements Serializable {

  /**
   * 类型字典ID
   */
  @ApiModelProperty("类型字典ID")
  private String typeDictionaryId;

  /**
   * 上级类型字典编码
   */
  @ApiModelProperty("上级类型字典编码")
  private String parentTypeDictionaryCode;

  /**
   * 类型字典编码
   */
  @ApiModelProperty("类型字典编码")
  private String typeDictionaryCode;

  /**
   * 类型字典名称
   */
  @ApiModelProperty("类型字典名称")
  private String typeDictionaryName;

  /**
   * 主题标识
   */
  @ApiModelProperty("主题标识")
  private String themeCode;

  /**
   * 层级
   */
  @ApiModelProperty("层级")
  private Long levelNumber;

  /**
   * 排序
   */
  @ApiModelProperty("排序")
  private Long orderNumber;

  /**
   * 类型用途编码 DEPT_TYPE:部门类型 POSITION_CLASS:职务类别 INDUCTION_TYPE:就职类型 INDUCTION_STATE:就职状态 WROK_TASK_SOURCE_CONF:工作任务来源 TASK_CATEGORIES:任务分类
   */
  @ApiModelProperty("类型用途编码")
  private String purposeCode;

  /**
   * 是否系统数据 TRUE:是 FALSE:否
   */
  @ApiModelProperty("是否系统数据")
  private String isSystemData;

  /**
   * 组织ID
   */
  @ApiModelProperty("组织ID")
  private String organizationId;

  /**
   * 操作人就职记录ID
   */
  @ApiModelProperty("操作人就职记录ID")
  private String operationInductionId;

  /**
   * 操作时间
   */
  @ApiModelProperty("操作时间")
  private Date operateTime;

  /**
   * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
   */
  @ApiModelProperty("主体生命周期")
  private String subjectLifeCycle;
@Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      TaskCategoriesDto that = (TaskCategoriesDto) o;
      return  typeDictionaryId == that.typeDictionaryId&&parentTypeDictionaryCode == that.parentTypeDictionaryCode&&typeDictionaryCode == that.typeDictionaryCode&&typeDictionaryName == that.typeDictionaryName&&themeCode == that.themeCode&&levelNumber == that.levelNumber&&orderNumber == that.orderNumber&&purposeCode == that.purposeCode&&isSystemData == that.isSystemData&&organizationId == that.organizationId&&operationInductionId == that.operationInductionId&&operateTime == that.operateTime&&subjectLifeCycle == that.subjectLifeCycle;
    }
@Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), typeDictionaryId,parentTypeDictionaryCode,typeDictionaryCode,typeDictionaryName,themeCode,levelNumber,orderNumber,purposeCode,isSystemData,organizationId,operationInductionId,operateTime,subjectLifeCycle);
    }

}
